<?php 
/**
 * @package pmapi
 * @copyright Copyright (c)2014 Enrico Fagnoni
 * @license GNU General Public License version 3, or later
 *
 * @since 1.0.0
 */
defined('_JEXEC') or die;
  
class pmapiViewpmapi extends JViewLegacy
{
        function display($tpl = null) 
        {
                // Set the toolbar
                $this->addToolBar();
                
                $this->contentNegotiationSupported = 
                    is_readable($easyRdfLibrary=JPATH_LIBRARIES.DS.'easyrdf'.DS.'EasyRdf.php');
 
                // Display the template
                parent::display($tpl);
        }
		
        /**
         * Setting the toolbar
         */
        protected function addToolBar() 
        {
                //$input = JFactory::getApplication()->input;
                //$input->set('hidemainmenu', true);
                JToolBarHelper::title(JText::_('COM_PMAPI_DASHBOARD_TITLE'));
				JToolBarHelper::preferences('com_pmapi');
        }
}